<div class="wrapper-md" ng-controller="users">
    <toaster-container toaster-options="{'position-class': 'toast-top-center', 'close-button':true}"></toaster-container>
    <div ng-if="usersList" class="panel panel-default">
    <div class="panel-heading">
        {{title.title}}
        <button ng-click="jumpToUrl()" style="float: right;margin-top: -5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
            <i class="fa fa-plus"></i>新建
        </button>
    </div>
    <div class="hbox hbox-auto-xs hbox-auto-sm">
    <div class="col" style="width:20%">
        <div class="wrapper-md">
            <div class="b-a bg-light dk r r-2x">
                <span ng-if="doing_async">...loading...</span>
                <div style="width:100%;height:462px;overflow-y:scroll;overflow-x:auto;" class="zTreeDemoBackground left">
                    <ul id="mytree" class="ztree"></ul>
                </div>
            </div>
        </div>
    </div>
            <div class="panel-body b-b b-light">
                搜索: <input id="filter" type="text" class="form-control input-sm w-sm inline m-r"/>
            </div>
            <div>
                <table class="table m-b-none" ui-jq="footable" data-filter="#filter" data-page-size="10">
                    <thead>
                    <tr>
                        <th>{{columns[0].title}}</th>
                        <th>{{columns[1].title}}</th>
                        <th>{{columns[2].title}}</th>
                        <th>{{columns[3].title}}</th>
                        <th>{{columns[4].title}}</th>
                        <th>{{columns[5].title}}</th>
                        <th>{{columns[6].title}}</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-if="saveDate.length<=0">
                        <td colspan="7">没有数据！</td>
                    </tr>
                    <tr ng-repeat="tb in saveDate">
                        <td>{{tb.userNumber}}</td>
                        <td><a href ng-click="showInfo(tb)">{{tb.userName}}</a></td>
                        <td>{{tb.dept.deptName}}</td>
                        <td>{{tb.userJob}}</td>
                        <td>{{tb.userTel}}</td>
                        <td>{{tb.createTime}}</td>
                        <td data-value="1"><span class="{{tb.status1}}">{{tb.status}}</span></td>
                    </tr>
                    </tbody>
                    <tfoot class="hide-if-no-paging">
                    <tr>
                        <td colspan="7" class="text-center">
                            <ul class="pagination"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
    </div>
</div>
    <div ng-if="usersAdd" class="panel panel-default">
        <div class="panel-heading">
            <u ng-if="!myShow" style="cursor:pointer"  ng-click="jumpToUrl('back')">{{title.title}} / </u>{{title.addTitle}}
            <button ng-click="saveInfo('sm')" style="float: right;margin-top: -5px;margin-left: 5px;" class="btn m-b-xs btn-sm btn-primary btn-addon">
                <i class="fa fa-plus"></i>保存
            </button>
            <button ng-click="jumpToUrl('back')" style="float: right;margin-top: -5px;margin-left: 5px;" class="btn m-b-xs btn-sm btn-default btn-addon">
                <i class="fa fa-hand-o-left"></i>返回
            </button>
        </div>
        <div class="panel-body">
            <h3 style="text-align: center"><b>用户资料信息表</b></h3>
            <form class="form-horizontal" method="get">
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-2"><span style="color:red">*</span>员工编号</label>
                    <div class="col-sm-3">
                        <input disabled type="text" class="form-control" id="userNumber" value="{{userRow.userNumber}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>员工姓名</label>
                    <div class="col-sm-3">
                        <input ng-model="userRow.userName" ng-change="toPY()" type="text" class="form-control" id="userName" value="{{userRow.userName}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>所属部门</label>
                    <div class="col-sm-3">
                        <input disabled style="width:85%;float: left" type="text" class="form-control" id="dept" value="{{userRow.dept.deptName}}">
                        <input style="display:none" type="text" class="form-control" id="deptId" value="{{userRow.deptId}}">
                        <span ng-if="!myShow" class="input-group-btn">
                            <button ng-click="showSelectDept('dept')" class="btn btn-default" type="button"><i class="fa fa-plus"></i></button>
                        </span>
                    </div>

                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-4">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</label>
                    <div class="col-sm-3">
                        <select  class="form-control" ng-model="mylabel" ng-options="v for v in lists" id="userSex"></select>
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-3">职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="userJob" value="{{userRow.userJob}}">
                    </div>

                    <label class="col-sm-1 control-label" for="input-id-1"><span style="color:red">*</span>联系电话</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="userTel" value="{{userRow.userTel}}">
                    </div>

                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1">教育程度</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="userEducation" value="{{userRow.userEducation}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-1">毕业院校</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="userSchool" value="{{userRow.userSchool}}">
                    </div>
                    <label class="col-sm-1 control-label" for="input-id-1">所学专业</label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control" id="userSpeciality" value="{{userRow.userSpeciality}}">
                    </div>
                </div>

                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-1 control-label" for="input-id-1">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
                    <div class="col-sm-11">
                        <textarea type="text" class="form-control" id="userBz" value="{{row.userBz}}">{{row.userBz}}</textarea>
                    </div>
                </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label" for="input-id-1">用户ID</label>
                        <div class="col-sm-4">
                            <input disabled type="text" class="form-control" id="userEname" value="{{userRow.userEname}}">
                        </div>
                    </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div ng-if="!myShow" class="form-group">
                    <label class="col-sm-2 control-label" for="input-id-1">是否启用</label>
                    <label class="i-switch m-t-xs m-r">
                        <input type="checkbox" ng-checked="{{userRow.qy}}" id="qy">
                        <i></i>
                    </label>
                </div>
                <div ng-if="!myShow" class="line line-dashed b-b line-lg pull-in"></div>
            </form>
        </div>
    </div>
</div>
<script type="text/ng-template" id="selectDept.html">
    <div ng-include="'tpl/selectDept.html'"></div>
</script>
<script type="text/ng-template" id="myModalContent.html">
    <div ng-include="'tpl/modal.html'"></div>
</script>